﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Whoever.Website.Framework.Utilities
{
    public class TextValidator
    {
        public static Boolean NotNull(List<string> itemsToValidate)
        {
            foreach (var item in itemsToValidate)
            {
                if (!NotNull(item))
                {
                    return false;
                }
            }
            return true;
        }

        public static Boolean NotNull(string itemToValidate)
        {
            if (!String.IsNullOrEmpty(itemToValidate))
            {
                return true;
            }
            return false;
        }

    }
}
